/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tcc.sglj.model;

import java.util.Collection;
import javax.annotation.Generated;
import javax.persistence.CascadeType;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author Leandro
 */
@Entity
@Table(name = "tb_marca")
public class MarkVehicle {

    @Id
    @Column(name = "id_marca")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    
    @Column(name = "nm_marca")
    private String name;
    
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "idMark")
    private Collection<VehicleClient> vehicleClient;

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the vehicleClient
     */
    public Collection<VehicleClient> getVehicleClient() {
        return vehicleClient;
    }

    /**
     * @param vehicleClient the vehicleClient to set
     */
    public void setVehicleClient(Collection<VehicleClient> vehicleClient) {
        this.vehicleClient = vehicleClient;
    }

  
}
